import { ServiceBase } from "../service/index";
import { Router } from '@angular/router';

export class ViewBase {
    constructor(router: Router) {
        let svr = new ServiceBase();
        if (!(svr.CurrentStore && svr.StoreOwner)) {
            //没有缓存的店铺和店长信息，重新回到店长登录页面。
            console.log("redirect to sotreLogin");
            //router.navigate(["storeLogin"]);
            window.location.href = "/";
        }
    }
}